/**
 * 
 */
package design_pattern.visitor;

/**
 * @author linzq
 *
 */
public class VisitorA implements Visitor {


  @Override
  public void visit(NodeA node) {
    System.out.println(node.operationA());
  }

  @Override
  public void visit(NodeB node) {
    System.out.println(node.operationB());
  }

}
